# 当前模块描述

# 作者：liguang

# 开发时间 2023/11/16 20:44

class Phone:
    # 序列号
    IMEI = None
    # 生产厂商
    producer = 'HW'

    def call_by_4g(self):
        print("4g通话")


class NFCReader:
    nfc_type = "第五代"
    producer = "HEIMA"

    def read_card(self):
        print("读卡功能")

    def write_card(self):
        print("写卡功能")


class RemoteControl:
    rc_type = '红外遥控'

    def control(self):
        print("红外遥控开启了")


"""
各种各样的功能来进行使用
"""


class MyPhone(Phone, NFCReader, RemoteControl):
    # 让语法不发生错误，本身么有任何实际含义
    pass

myPhone=MyPhone()
myPhone.call_by_4g()
myPhone.control()
myPhone.read_card()


"""
    这里是继承写法，单继承写法
"""


class Phone22(Phone):
    face_id = "10086"

    def call_by_5g(self):
        print("2022年5g通话")


phone22 = Phone22()
phone22.call_by_4g()
phone22.call_by_5g()
print(f"打印当前手机的序列号:{phone22.producer}")
